//
//  YXAuxiliaryViewHandler.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol YXAuxiliaryViewHandlerProtocol <NSObject>

@required

/// 展示正确情况的提示
- (void)yx_showCorrectToastWithContainer:(UIView *)container text:(NSString *)text;
/// 展示错误情况的提示
- (void)yx_showIncorrectToastWithContainer:(UIView *)container text:(NSString *)text;
/// 隐藏所有提示
- (void)yx_hideToastWithContainer:(UIView *)container;

/// 展示加载视图
- (void)yx_showLoadingWithContainer:(UIView *)container;
/// 展示带进度的加载视图
- (void)yx_showLoadingWithContainer:(UIView *)container progress:(CGFloat)progress;
/// 展示带文字的视图
- (void)yx_showLoadingWithContainer:(UIView *)container text:(NSString *)text;
/// 隐藏所有视图
- (void)yx_hideLoadingWithContainer:(UIView *)container;

@end

@interface YXAuxiliaryViewHandler : NSObject <YXAuxiliaryViewHandlerProtocol>

@end

NS_ASSUME_NONNULL_END
